<?php
namespace Home\Model;
use Think\Model;

class ProjectModel extends Model {
	// 定义自动验证
    protected $_validate    =   array(
        array('project_name','require','项目名不能为空'),
        array('project_intro','require','项目简介不能为空'),
        array('project_type','require','项目类型不能为空'),
    );

    protected $_auto = array(
    	array('create_time','time',1,'function'),
    );
}